package com.ts.view

import android.content.Context
import android.opengl.GLSurfaceView
import android.util.AttributeSet
import android.view.SurfaceView
import com.ts.camera2.CameraUtil

class CameraSurfaceView : GLSurfaceView {

      constructor(context: Context?, attrs: AttributeSet?):super(context,attrs){
          init();
      }

      constructor(context: Context?):super(context){
          init()
      }


      fun init(){
          setEGLContextClientVersion(2)

          setRenderer(CameraRender(context,this))
//=======
//          var mCame=CameraV2Renderer()
//          mCame.init(this, CameraUtil(),false,context)
//          setRenderer(mCame)
//

          renderMode= RENDERMODE_WHEN_DIRTY
      }


}